import { XML } from 'mixly';
import PICO_CONFIG_TEMPLATE from '../templates/html/board-config-message.html';

export const ZhHantMsg = {};

ZhHantMsg.PICO_CONFIG_INTRODUCE = '詳細介紹請參考';

ZhHantMsg.PICO_CONFIG_MESSAGE_flash = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '快閃記憶體大小',
    message: '此選項用於選擇閃存大小。透過指定為檔案系統分配的大小來控制。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#flash-size',
    name: '#Flash Size'
});

ZhHantMsg.PICO_CONFIG_MESSAGE_freq = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'CPU時脈頻率',
    message: '在此選項上,你可以選擇CPU時脈頻率。如果在更高的位置失敗,在插入時按住BOOTSEL以進入更新模式並嘗試 更低的超頻。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#cpu-speed',
    name: '#CPU Speed'
});

ZhHantMsg.PICO_CONFIG_MESSAGE_usbstack = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'USB堆疊',
    message: '此選項預設更簡單的Pico-SDK版本USB堆疊, 包含基於USB的串列埠, 以及支援自動重設上傳。如果你需要啟用更強大的USB堆疊, 請選擇Adafruit TinyUSB,但是請您必須在TinyUSB程式中包含TinyUSB庫。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/usb.html#usb-arduino-and-adafruit-tinyusb',
    name: '#USB Stack'
});

ZhHantMsg.PICO_CONFIG_MESSAGE_dbgport = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '偵錯連接埠',
    message: '選擇所需的調試端口用於核心的調試訊息可以列印到串行端口。為調試輸出選擇連接埠不會阻止草圖使用它 用於正常操作。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#debug-port',
    name: '#Debug Port'
});

ZhHantMsg.PICO_CONFIG_MESSAGE_dbglvl = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '偵錯等級',
    message: '透過直接添加所需的構建再次完成標誌。 當你想要定義多個建構標誌時，必須將它們累積在單行或換行符號分隔的表達式。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#debug-level',
    name: '#Debug Level'
});

ZhHantMsg.PICO_CONFIG_MESSAGE_ipbtstack = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'IP/Bluetooth堆疊',
    message: '此選項上預設IPV4。 IP堆疊不僅支援IPV4, 另外支援IPV6; Bluetooth堆疊支援藍牙經典(BTC)和藍牙低功耗(BLE), 請根據你的實際情況配置。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#ip-stack',
    name: '#IP/Bluetooth Stack'
});

ZhHantMsg.PICO_CONFIG_MESSAGE_uploadmethod = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '上傳方式',
    message: '此選項用於選擇特定的上傳方式用於上傳程式。如果你已經建置好對應的上傳環境，請根據實際情況配置此選項。如果你不知道如何配置此項，請保留預設選項。',
    moreInfo: ZhHantMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/install.html#uploading-sketches-with-picotool',
    name: '#Upload Method'
});

export const ZhHantCatgories = {
    'catUsb': 'USB序列'
};